package com.dtner.common.enums;

/**
 * @author: dt
 * @description: 接口返回规范
 * @create: 2022-07-12 19:51
 */
public enum ResultCodeEnum {

    /**
     * 成功
     */
    Success(0, "成功");

    /**
     * 接口返回 code 状态码
     */
    private Integer code;

    /**
     * 接口返回状态吗描述
     */
    private String msg;

    ResultCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
